package com.youlai.system.converter;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youlai.system.model.bo.CesBO;
import com.youlai.system.model.entity.Ces;
import com.youlai.system.model.form.CesForm;
import com.youlai.system.model.vo.CesPageVO;
import org.mapstruct.InheritInverseConfiguration;
import org.mapstruct.Mapper;

@Mapper(componentModel = "spring")
public interface CesConverter {
    CesPageVO bo2Vo(CesBO bo);

    Page<CesPageVO> bo2Vo(Page<CesBO> bo);
    CesForm entity2Form(Ces entity);
    @InheritInverseConfiguration(name="entity2Form")
    Ces form2Entity(CesForm entity);
}
